import {combineReducers}                from 'redux';

import {CART}                          from '../constants';
import {reduceSuccess, returnSuccess}   from '../utils/Reducer';

export default combineReducers({

    list: reduceSuccess([], CART.list),
    item: reduceSuccess({list: []}, CART.item),
    edit: returnSuccess(CART.edit),
    clear: returnSuccess(CART.clear),
    records: reduceSuccess([], CART.records),
    exchange: returnSuccess(CART.exchange),

})
